package com.shy.mapper;

import com.shy.config.common.BaseQuery;
import com.shy.config.query.ActivityList;
import com.shy.config.util.DataScope;
import com.shy.entity.Activity;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
* @author sunhuanyu
* @description 针对表【t_activity(市场活动表)】的数据库操作Mapper
* @createDate 2024-12-09 11:57:17
* @Entity com.shy.entity.Activity
*/
public interface ActivityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Activity record);

    int insertSelective(Activity record);

    Activity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Activity record);

    int updateByPrimaryKey(Activity record);

    @DataScope(tableAlias = "ta", tableField = "owner_id")
    List<Activity> queryActivityListByPage(@Param("baseQuery") BaseQuery baseQuery, @Param("activityList") ActivityList activityList);

    Activity queryUserDetailById(Integer activityId);

    List<Activity> queryUserListByName();

    int batchAvtivityDelete(List<Integer> activityIds);

    List<Activity> selectAllList();
}
